<div class="modal-content">
  <div class="modal-header">
    <h4 class="modal-title">添加任课信息</h4>
    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
      <span aria-hidden="true">×</span>
    </button>
  </div>

 <div class="modal-body" style="overflow:auto;">
<form class="form-inline">
    <div class="form-group" style="float:left;margin-bottom:10px;">
        <select class="form-control" ng-options="aca.prop_pk as aca.prop_value for aca in academics" ng-model="form.academic" ng-change="findClass()" form-check="must" form-check-alert="学年不能为空">
            <option value="">==学年==</option>
        </select>
    </div>
    <div class="form-group" style="float:left;margin-bottom:10px;">
        <select class="form-control" ng-options="sem.prop_pk as sem.prop_value for sem in semesters" ng-model="form.semester" ng-change="findClass()" form-check="must" form-check-alert="学期不能为空">
            <option value="">==学期==</option>
        </select>
    </div>
    <div class="form-group" style="float:left;margin-bottom:10px;">
        <select class="form-control" ng-options="unit.id as unit.showname for unit in unitList" ng-model="dataInfo.fk_unit" ng-change="findGrade()" form-check="must" form-check-alert="校区不能为空">
            <option value="">==请选择==</option>
        </select>
    </div>
    <div class="form-group" style="float:left;margin-bottom:10px;">
        <select class="form-control" ng-options="grade.id as grade.name for grade in gradeList" ng-model="form.fk_grade" ng-change="findClass()" form-check="must" form-check-alert="年级不能为空">
            <option value="">==年级==</option>
        </select>
    </div>
    <div class="form-group" style="float:left;margin-bottom:10px;">
        <select class="form-control" ng-options="class.id as class.name for class in classList" ng-model="form.fk_class"  form-check="must" form-check-alert="班级不能为空">
            <option value="">==班级==</option>
        </select>
    </div>
    <div class="form-group" style="float:left;margin-bottom:10px;">
        <select class="form-control" ng-options="course.id as course.name for course in courseList" ng-model="form.fk_course" form-check="must" form-check-alert="课程不能为空">
            <option value="">==课程==</option>
        </select>
    </div>
    <div class="form-group" style="float:left;margin-bottom:10px;">
        <input ng-model="form.week" type="text" class="form-control"  placeholder="每周学时"/>
    </div>
    <div class="form-group" style="float:left;margin-bottom:10px;">
        <input ng-model="form.name" type="text" class="form-control" placeholder="任课教师姓名" />
        <button ng-click="select()" type="submit" class="btn btn-secondary"><i class="iconfont icon-search"></i>&nbsp;查询</button>
    </div>
</form>

 <table class="table table-hover table-bordered">
      <thead>
        <tr>
           <th>选择</th>
           <th>姓名</th>
           <th>身份证号</th>
           <th>编制类别</th>
           <th>工作单位</th>
        </tr>
      </thead>
      <tbody ng-switch on="page.current_num">
      	<tr ng-switch-when="0">
   		<td colspan="100" >查询无记录</td>
   		</tr>
        <tr ng-repeat="row in rows">
	      <td>
	      	<input type="radio" name="dataPk" value="{{row.id}}" />
	      </td>
          <td>{{row.name}}</td>
          <td>{{row.id_card}}</td>
          <td>{{row.bzlb_name}}</td>
          <td>{{row.gzdw_name}}</td>
        </tr>
       
      </tbody>
 </table>
 <div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page"></div>
</div>

  <div class="modal-footer">
   <button ng-click="saveForm()" type="button" class="btn btn-success"><i class="iconfont icon-correct"></i>&nbsp;保存</button>
  </div>
</div>